
import {
  mount,
  shallowMount,
  createLocalVue
} from '@vue/test-utils'
import mockAxios from 'tests/__mocks__/axios'
import 'tests/unit/lib/before-test'
import VueI18n from 'vue-i18n'
import i18n from '@/lang'
import Vuex from 'vuex'
import store from '@/store'
import VueRouter from 'vue-router'
import 'jest-canvas-mock'
const localVue = createLocalVue()
localVue.use(VueI18n)
localVue.use(VueRouter)
localVue.use(Vuex)

// 路由路径信息
const router = new VueRouter({
  mode: 'hash',
  base: '/',
  routes: store.state.user.addRouters
})

const fileObj = { name: 'fdsgfdgfdgfdgdfg' }
const file = new Blob([fileObj])
export {
  mount,
  shallowMount,
  mockAxios,
  localVue,
  i18n,
  store,
  router,
  file
}
